<?php

class myUser extends sfGuardSecurityUser

{
	/*
	 * There is a bug (or maybe a feature ) with sfGuardSecurityUser
when the method hasCredential is called to check empty credential (if no credential is defined admin generator module) then false is returned... 
So the solution is to overload method of myUser class (which extends sfGuardSecurityUser) sth like this: 
	 * */
     public function hasCredential($x,$useAnd=true) {
       
        if($x) {
            return parent::hasCredential($x,$useAnd);
        }
        else {
            return true;
        }
    }

}
